//
//  Person.m
//  通知
//
//  Created by song on 15/1/15.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "Person.h"
#import "Company.h"
@implementation Person



-(void)companyNotification:(NSNotification *)noti
{
    
    Company *company =noti.object;
    NSLog(@"%@  接受%@ 发来的通知， 通知的内容:%@ ", self.name,company.name, noti.userInfo );
}

-(void)dealloc
{
    [[[NSNotificationCenter defaultCenter]removeObserver:self] ];
}

@end
